import static org.junit.Assert.*;

import org.junit.Before;
import org.junit.Test;

public class AplTest {
	private Game	g;
	private Player	p;

	@Before
	public void test_Game() {
		g = new Game();
		p = new Player( "Player1", 100, 0, 0 );
		g.addPlayer( p );
	}

	@Test
	public void testPlayer_getName() {
		assertEquals( "Player1", p.getName() );
	}

	@Test
	public void testPlayer_getHealth() {
		assertEquals( 100, p.getHealth() );
	}

	@Test
	public void testPlayer_getKills() {
		assertEquals( 0, p.getKills() );
	}

	@Test
	public void testPlayer_getDealths() {
		assertEquals( 0, p.getDeaths() );
	}

	@Test
	public void testPlayer_getStreak() {
		assertEquals( 0, p.getStreak() );
	}

	@Test
	public void testPlayer_getPosition() {
		assertEquals( "(0,0)", p.getPosition().toString() );
	}

	@Test
	public void testPlayer_getPosition_getX() {
		assertEquals( 0, p.getPosition().getX() );
	}

	@Test
	public void testPlayer_getPosition_getY() {
		assertEquals( 0, p.getPosition().getY() );
	}

}